﻿// MIT License
// 开源地址：https://gitee.com/co1024/AbcMvc
// Copyright (c) 2021-2023 1024
// Abc.Mvc=Furion+EF+SqlSugar+Pear layui admin.

namespace Abc.Application.HtAdminServices;

/// <summary>
/// 输入Mapper
/// 事件源存储器
/// </summary>
public class HtEventSourceStorerMapperOut : IRegister
{
    public void Register(TypeAdapterConfig config)
    {
        // 示例
        //config.ForType<xxxx,xxxOut>()
        //.Map(dest => dest.MigrationId, src => src.MigrationId)//
        //.Map(dest => dest.Id, src => src.Id)//
        //;

        // Description 事件源存储器
        //config.ForType<SysEventSourceStorer,HtEventSourceStorerOut>()

        #region 公共字段

        //.Map(dest => dest.Id, src => src.Id)//  ID
        //.Map(dest => dest.ExtensionData, src => src.ExtensionData)//  扩展字段
        //.Map(dest => dest.CreationTime, src => src.CreationTime.ToStringLongDate())// 创建时间

        #endregion 公共字段

        //.Map(dest => dest.Error, src => src.Error)//  错误信息
        //.Map(dest => dest.EventId, src => src.EventId)//  事件 Id
        //.Map(dest => dest.Payload, src => src.Payload)//  事件承载（携带）数据
        //.Map(dest => dest.State, src => src.State)//  事件处理状态

        #region 自定义

        //.Map(dest => dest.CompletedTime, src => src.CompletedTime.ToStringLongDate())//  完成时间

        #endregion 自定义

        //;
    }
}